/**
 *  搜索历史api
 */
import {
	http
} from '@/api/config.js'

/**
 * 获取热门搜索词
 */
export const getHotSearchWord = () => {
	return http.get('/searchHistory/hot');
}

/**
 * 获取个人最近搜索词
 */
export const getLastSearchWord = () => {
	return http.get('/searchHistory/last');
}

/**
 * 删除个人最近搜索词
 */
export const deleteLastSearchWord = (ids) => {
	return http.post('/searchHistory/deleteLast', ids)
}